package com.platform.common.bean;

/**
 * 
 * @author Mo
 * @date 2019/08/12
 */
public class UserRoleKey {
    /**
     * 
     */
    private Integer uid;

    /**
     * 
     */
    private Integer roleId;

    public UserRoleKey(Integer uid, Integer roleId) {
        this.uid = uid;
        this.roleId = roleId;
    }

    public UserRoleKey() {
        super();
    }

    public Integer getUid() {
        return uid;
    }

    public void setUid(Integer uid) {
        this.uid = uid;
    }

    public Integer getRoleId() {
        return roleId;
    }

    public void setRoleId(Integer roleId) {
        this.roleId = roleId;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", uid=").append(uid);
        sb.append(", roleId=").append(roleId);
        sb.append("]");
        return sb.toString();
    }
}